<?php
/**
 * Created by PhpStorm.
 * Author: MeiJay
 * Date: 2018/11/5
 * Time: 18:22
 */

namespace App\Service;


class PrizeService extends BaseService
{


   public function __construct($modelName = 'Prize')
   {
       parent::__construct($modelName);
   }

    /**
     * 根据主键批量更新
     * @param  [mix] $where [description]
     * @param  [type] $data  [description]
     * @return [type]        [description]
     */
    public function updateBatch($where,$data)
    {
        $key = key($where);
        return $this->model->whereIn($key,$where)->update($data);
    }

}